package online.cmagic.structureType.proxy.staticproxy;

/**
 * @author wsc
 * @date: 2020年04月14日 09:27
 * @since JDK 1.8
 */
public class ProxyStar implements Star {

    private RealStar star;

    public ProxyStar(RealStar star){
        this.star=star;
    }

    public void confer() {
        System.out.println("ProxyStar.confer");
    }

    public void singContract() {
        System.out.println("ProxyStar.singContract");
    }

    public void bookTicket() {
        System.out.println("ProxyStar.bookTicket");
    }

    public void sing() {
        star.sing();
    }

    public void recieveMoney() {
        System.out.println("ProxyStar.recieveMoney");
    }
}
